<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/allInstitution.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../models/admin/js/allInstitution.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script> 
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>
    
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>全省师范类专业名录</span></div>
			<section class="row" style="padding:0 25px; margin-top:10px;">
				<div ng-controller="allInstitutionList">
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div>添加机构</div>
						<div>
							<span>机构代码：</span><input type="text" ng-model="account" placeholder="请输入编号"/>
						</div>
						<div>
							<span>单位名称：</span><input type="text" ng-model="schoolName" placeholder="请输入工作单位"/>
						</div>
						<div>
							<span>专业：</span>
							<select type="text" ng-model="major" placeholder="请输入性别">
								<option value="">选择专业</option>
								<option value="0">学前教育</option>
								<option value="1">小学教育</option>
								<option value="2">中学教育</option>
							</select>
						</div>
						<div><div ng-hide="isclickBtn" ng-click="addFirstZ()">确认</div><div ng-show="isclickBtn" ng-click="updateAuthSchoolInfoAccount()">修改</div><div ng-click="cancelAddM()">取消</div></div>
					</div>
					<div class="">
					</div>
					
					<div class="whole-cover" ng-hide="isAddPwd"></div>
					<div class="add-form" ng-hide="isAddPwd">
						<div>修改密码</div>
						<div>
							<span class="pwdspan">旧密码：</span><input type="password" ng-model="oldPwd" placeholder="请输入旧密码"/>
						</div>
						<div>
							<span class="pwdspan">新密码：</span><input type="password" ng-model="newPwd01" placeholder="请输入新密码"/>
						</div>
						<div>
							<span class="pwdspan">再次输入新密码：</span>
							<input type="password" ng-model="newPwd02" placeholder="请再次输入新密码"/>
						</div>
						<div><div ng-click="updatePwd()">修改密码</div><div ng-click="cancelAddPwd()">取消</div></div>
					</div>
					<div class="">
					</div>
					<div class="top-check clearfix">
						<select type="text" class="fl select01 mr15" ng-change="myFunc()" ng-model="sel" placeholder="">
							<option value="">选择查询条件</option>
							<option value="0">按代码查询</option>
							<option value="1">按专业查询</option>
							<option value="2">按机构名查询</option>
						</select>
						<input type="text" class="fl text01"  ng-hide="isSel01" ng-model="account01" placeholder="请输入机构代码"/>
						<select type="text" class="fl select01" ng-hide="isSel02" ng-model="major01" placeholder="">
							<option value="">按专业查询</option>
							<option value="0">学前教育专业</option>
							<option value="1">小学教育专业</option>
							<option value="2">中学教育专业</option>
						</select>						
						<input type="text" class="fl text01"  ng-hide="isSel03" ng-model="schoolName01" placeholder="请输入机构名称"/>
						<div class="fl btn-query btn ml15" ng-click="queryMain()">查询</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">添加</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li>序号</li>
									<li>代码</li>
									<li>单位名称</li>
									<li>专业</li>
								</ul>
							</div>
							<div class="detail-bot">操作</div>
							
						</div>
						<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
							<div class="detail-part">
								<ul>
									<li ng-bind="$index+1" title="{{$index+1}}"></li>
									<li ng-bind="arraylist.account?arraylist.account:'-'" title="{{arraylist.account}}">代码</li>
									<li ng-bind="arraylist.schoolName?arraylist.schoolName:'-'" title="{{arraylist.schoolName}}">单位名称</li>
									<li ng-bind="arraylist.majorName?arraylist.majorName:'-'" title="{{arraylist.majorName}}">专业</li>
								</ul>
							</div>
							<div class="detail-bot">
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="queryAuthSchoolInfoById(arraylist.pid)">修改信息</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="addPwd(arraylist.account)">修改密码</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="delCollect(arraylist.pid)">删除</span>
							</div>
						</div>
						<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
						<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
							暂无相关数据
						</div>
					</div>
					<section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
						<pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
					</section>
				</div>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
